package com.jp.refreshlocalcacheclient.data;

import java.lang.reflect.Method;

/**
 * @Author: jipeng
 * @Description: 刷新缓存调用的方法
 * @Date: Created in 2020/4/29 15:43
 */
public class CacheMethod {

    /**
     * 刷新对应的key
     */
    private String key;

    /**
     * 需要刷新的方法
     */
    private Method method;

    /**
     * 刷新方法所在的 bean 对象
     */
    private Object beanObj;


    public CacheMethod(String key, Method method, Object beanObj){
        this.key = key;
        this.method = method;
        this.beanObj = beanObj;
    }


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object getBeanObj() {
        return beanObj;
    }

    public void setBeanObj(Object beanObj) {
        this.beanObj = beanObj;
    }
}
